<?php namespace App\Http\Services\Wechat;

class config{
    private $appid ;
    private $secret ;
    private $callback;
    private $openappid;
    private $opensecret;

    public function __construct()
    {
        //公众号信息
        $this->appid    = env('WEIXIN_KEY');
        $this->secret   = env('WEIXIN_SECRET');
        $this->callback = env('WEIXIN_REDIRECT_URI');

        //小程序信息
        $this->openappid    = env('WXAPP_KEY');
        $this->opensecret   = env('WXAPP_SECRET');
    }

    public function getAppid(){
        return $this->appid;
    }

    public function getSecret(){
        return $this->secret;
    }

    public function getCallBack(){
        return $this->callback;
    }

    public function getOpenAppid(){
        return $this->openappid;
    }

    public function getOpenSecret(){
        return $this->opensecret;
    }
}